package org.ghost.wechat.platform.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author Administrator
 */
@Data
@Component
@ConfigurationProperties(prefix = "slave.db")
@PropertySource(value = {"${spring.config.location}db.properties"}, encoding = "UTF-8")
public class SlaveDbProperties implements Serializable {
    private static final long serialVersionUID = 9179889371233229807L;

    private String driverClassName;

    private String url;

    private String username;

    private String password;

    private Integer maxActive;

    private Integer initialSize;

    private Long maxWait;

    private Integer minIdle;

    private Long timeBetweenEvictionRunsMillis;

    private Long minEvictableIdleTimeMillis;

    private String validationQuery;

    private Boolean testWhileIdle;

    private Boolean testOnBorrow;

    private Boolean testOnReturn;

    private Boolean poolPreparedStatements;

    private Integer maxPoolPreparedStatementPerConnectionSize;
}
